home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / misc / amigem.lha / amigem / clib / _exec.h next >
Encoding:
C/C++ Source or Header  |  1995-01-22  |  16.7 KB  |  291 lines

  1. #ifndef __exec_h_
  2. #define __exec_h_
  3. #include <exec/devices.h>
  4. #include <exec/semaphores.h>
  5. #include <exec/io.h>
  6. #include <exec/memory.h>
  7. #include <dos/dos.h>
  8. struct ExecBase;
  9.   void  _AddDevice (struct ExecBase * , struct Device *device );
  10. #define  AddDevice(b1) _AddDevice (SysBase ,b1)
  11.   void  _RemDevice (struct ExecBase * , struct Device *device );
  12. #define  RemDevice(b1) _RemDevice (SysBase ,b1)
  13.   BYTE  _OpenDevice (struct ExecBase * , STRPTR devName , ULONG unitNumber , struct IORequest *iORequest , ULONG flags );
  14. #define  OpenDevice(b1,b2,b3,b4) _OpenDevice (SysBase ,b1,b2,b3,b4)
  15.   void  _CloseDevice (struct ExecBase * , struct IORequest *iORequest );
  16. #define  CloseDevice(b1) _CloseDevice (SysBase ,b1)
  17.   void  _SendIO (struct ExecBase * , struct IORequest *iORequest );
  18. #define  SendIO(b1) _SendIO (SysBase ,b1)
  19.   struct IORequest *  _CheckIO (struct ExecBase * , struct IORequest *iORequest );
  20. #define  CheckIO(b1) _CheckIO (SysBase ,b1)
  21.   BYTE  _WaitIO (struct ExecBase * , struct IORequest *iORequest );
  22. #define  WaitIO(b1) _WaitIO (SysBase ,b1)
  23.   void  _AbortIO (struct ExecBase * , struct IORequest *iORequest );
  24. #define  AbortIO(b1) _AbortIO (SysBase ,b1)
  25.   BYTE  _DoIO (struct ExecBase * , struct IORequest *iORequest );
  26. #define  DoIO(b1) _DoIO (SysBase ,b1)
  27.   struct IORequest *  _CreateIORequest (struct ExecBase * , struct MsgPort *ioReplyPort , ULONG size );
  28. #define  CreateIORequest(b1,b2) _CreateIORequest (SysBase ,b1,b2)
  29.   void  _DeleteIORequest (struct ExecBase * , struct IORequest *ioReq );
  30. #define  DeleteIORequest(b1) _DeleteIORequest (SysBase ,b1)
  31.   struct Library *  _EXEC_Open (struct ExecBase * , ULONG version );
  32. #define  EXEC_Open(b1) _EXEC_Open (SysBase ,b1)
  33.   BPTR  _EXEC_Close (struct ExecBase * );
  34. #define  EXEC_Close() _EXEC_Close (SysBase )
  35.   BPTR  _EXEC_Expunge (struct ExecBase * );
  36. #define  EXEC_Expunge() _EXEC_Expunge (SysBase )
  37.   ULONG  _EXEC_Null (struct ExecBase * );
  38. #define  EXEC_Null() _EXEC_Null (SysBase )
  39.   struct Interrupt *  _SetIntVector (struct ExecBase * , ULONG intNumber , struct Interrupt *interrupt );
  40. #define  SetIntVector(b1,b2) _SetIntVector (SysBase ,b1,b2)
  41.   void  _AddIntServer (struct ExecBase * , long intnum , struct Interrupt *inter );
  42. #define  AddIntServer(b1,b2) _AddIntServer (SysBase ,b1,b2)
  43.   void  _RemIntServer (struct ExecBase * , ULONG intNum , struct Interrupt *interrupt );
  44. #define  RemIntServer(b1,b2) _RemIntServer (SysBase ,b1,b2)
  45.   void  _Cause (struct ExecBase * , struct Interrupt *interrupt );
  46. #define  Cause(b1) _Cause (SysBase ,b1)
  47.   ULONG  _ObtainQuickVector (struct ExecBase * , APTR interruptCode );
  48. #define  ObtainQuickVector(b1) _ObtainQuickVector (SysBase ,b1)
  49.   void  _Disable (struct ExecBase * );
  50. #define  Disable() _Disable (SysBase )
  51.   void  _Enable (struct ExecBase * );
  52. #define  Enable() _Enable (SysBase )
  53.   void  _Private_1 (struct ExecBase * );
  54. #define  Private_1() _Private_1 (SysBase )
  55.     APTR  _Private_2 (struct ExecBase * , APTR newstack );
  56. #define  Private_2(b1) _Private_2 (SysBase ,b1)
  57.     APTR  _Private_3 (struct ExecBase * , APTR oldstack , APTR function , APTR data );
  58. #define  Private_3(b1,b2,b3) _Private_3 (SysBase ,b1,b2,b3)
  59.     void  _Private_4 (struct ExecBase * , ULONG intnum );
  60. #define  Private_4(b1) _Private_4 (SysBase ,b1)
  61.     void  _CacheClearU (struct ExecBase * );
  62. #define  CacheClearU() _CacheClearU (SysBase )
  63.   void  _CacheClearE (struct ExecBase * , APTR address , ULONG length , ULONG flags );
  64. #define  CacheClearE(b1,b2,b3) _CacheClearE (SysBase ,b1,b2,b3)
  65.   APTR  _CachePreDMA (struct ExecBase * , APTR address , LONG *length , ULONG flags );
  66. #define  CachePreDMA(b1,b2,b3) _CachePreDMA (SysBase ,b1,b2,b3)
  67.   void  _CachePostDMA (struct ExecBase * , APTR address , LONG *length , ULONG flags );
  68. #define  CachePostDMA(b1,b2,b3) _CachePostDMA (SysBase ,b1,b2,b3)
  69.   void  _AddLibrary (struct ExecBase * , struct Library *lib );
  70. #define  AddLibrary(b1) _AddLibrary (SysBase ,b1)
  71.   void  _RemLibrary (struct ExecBase * , struct Library *lib );
  72. #define  RemLibrary(b1) _RemLibrary (SysBase ,b1)
  73.   ULONG  _MakeFunctions (struct ExecBase * , APTR bp , APTR array , APTR base );
  74. #define  MakeFunctions(b1,b2,b3) _MakeFunctions (SysBase ,b1,b2,b3)
  75.   void  _InitStruct (struct ExecBase * , APTR is , APTR mem , ULONG size );
  76. #define  InitStruct(b1,b2,b3) _InitStruct (SysBase ,b1,b2,b3)
  77.   struct Library *  _MakeLibrary (struct ExecBase * , APTR jmptabl , APTR is , ULONG (*initpc)() , ULONG size , ULONG seglist );
  78. #define  MakeLibrary(b1,b2,b3,b4,b5) _MakeLibrary (SysBase ,b1,b2,b3,b4,b5)
  79.   struct Library *  _OldOpenLibrary (struct ExecBase * , APTR libName );
  80. #define  OldOpenLibrary(b1) _OldOpenLibrary (SysBase ,b1)
  81.   void  _CloseLibrary (struct ExecBase * , struct Library *library );
  82. #define  CloseLibrary(b1) _CloseLibrary (SysBase ,b1)
  83.   APTR  _SetFunction (struct ExecBase * , struct Library *library , LONG funcOffset , APTR funcEntry );
  84. #define  SetFunction(b1,b2,b3) _SetFunction (SysBase ,b1,b2,b3)
  85.   void  _SumLibrary (struct ExecBase * , struct Library *library );
  86. #define  SumLibrary(b1) _SumLibrary (SysBase ,b1)
  87.   struct Library *  _OpenLibrary (struct ExecBase * , STRPTR libName , ULONG version );
  88. #define  OpenLibrary(b1,b2) _OpenLibrary (SysBase ,b1,b2)
  89.   void  _Insert (struct ExecBase * , struct List *list , struct Node *node , struct Node *prev );
  90. #define  Insert(b1,b2,b3) _Insert (SysBase ,b1,b2,b3)
  91.   void  _Remove (struct ExecBase * , struct Node *node );
  92. #define  Remove(b1) _Remove (SysBase ,b1)
  93.   void  _AddHead (struct ExecBase * , struct List *list , struct Node *node );
  94. #define  AddHead(b1,b2) _AddHead (SysBase ,b1,b2)
  95.   struct Node *  _RemHead (struct ExecBase * , struct List *list );
  96. #define  RemHead(b1) _RemHead (SysBase ,b1)
  97.   void  _AddTail (struct ExecBase * , struct List *list , struct Node *node );
  98. #define  AddTail(b1,b2) _AddTail (SysBase ,b1,b2)
  99.   struct Node *  _RemTail (struct ExecBase * , struct List *list );
  100. #define  RemTail(b1) _RemTail (SysBase ,b1)
  101.   void  _Enqueue (struct ExecBase * , struct List *list , struct Node *node );
  102. #define  Enqueue(b1,b2) _Enqueue (SysBase ,b1,b2)
  103.   struct Node *  _FindName (struct ExecBase * , struct List *list , STRPTR name );
  104. #define  FindName(b1,b2) _FindName (SysBase ,b1,b2)
  105.   VOID  _StackSwap (struct ExecBase * , struct StackSwapStruct *newStack );
  106. #define  StackSwap(b1) _StackSwap (SysBase ,b1)
  107.   void *  _Allocate (struct ExecBase * , struct MemHeader *mh , ULONG size );
  108. #define  Allocate(b1,b2) _Allocate (SysBase ,b1,b2)
  109.   void  _Deallocate (struct ExecBase * , struct MemHeader *mh , APTR mem , ULONG size );
  110. #define  Deallocate(b1,b2,b3) _Deallocate (SysBase ,b1,b2,b3)
  111.   void *  _AllocMem (struct ExecBase * , ULONG size , ULONG attrib );
  112. #define  AllocMem(b1,b2) _AllocMem (SysBase ,b1,b2)
  113.   void  _FreeMem (struct ExecBase * , void *mem , ULONG size );
  114. #define  FreeMem(b1,b2) _FreeMem (SysBase ,b1,b2)
  115.   void *  _AllocAbs (struct ExecBase * , ULONG size , void *mem );
  116. #define  AllocAbs(b1,b2) _AllocAbs (SysBase ,b1,b2)
  117.   void *  _AllocVec (struct ExecBase * , ULONG size , ULONG attrib );
  118. #define  AllocVec(b1,b2) _AllocVec (SysBase ,b1,b2)
  119.   void  _FreeVec (struct ExecBase * , void *mem );
  120. #define  FreeVec(b1) _FreeVec (SysBase ,b1)
  121.   struct MemList *  _AllocEntry (struct ExecBase * , struct MemList *ml );
  122. #define  AllocEntry(b1) _AllocEntry (SysBase ,b1)
  123.   void  _FreeEntry (struct ExecBase * , struct MemList *ml );
  124. #define  FreeEntry(b1) _FreeEntry (SysBase ,b1)
  125.   void  _AddMemList (struct ExecBase * , ULONG size , ULONG attributes , LONG pri , APTR base , STRPTR name );
  126. #define  AddMemList(b1,b2,b3,b4,b5) _AddMemList (SysBase ,b1,b2,b3,b4,b5)
  127.   ULONG  _TypeOfMem (struct ExecBase * , void *mem );
  128. #define  TypeOfMem(b1) _TypeOfMem (SysBase ,b1)
  129.   void  _CopyMem (struct ExecBase * , APTR source , APTR dest , unsigned long size );
  130. #define  CopyMem(b1,b2,b3) _CopyMem (SysBase ,b1,b2,b3)
  131.   void  _CopyMemQuick (struct ExecBase * , ULONG *source , ULONG *dest , ULONG size );
  132. #define  CopyMemQuick(b1,b2,b3) _CopyMemQuick (SysBase ,b1,b2,b3)
  133.   ULONG  _AvailMem (struct ExecBase * , ULONG attributes );
  134. #define  AvailMem(b1) _AvailMem (SysBase ,b1)
  135.   void *  _CreatePool (struct ExecBase * , ULONG memFlags , ULONG puddleSize , ULONG treshSize );
  136. #define  CreatePool(b1,b2,b3) _CreatePool (SysBase ,b1,b2,b3)
  137.   void  _DeletePool (struct ExecBase * , void *poolHeader );
  138. #define  DeletePool(b1) _DeletePool (SysBase ,b1)
  139.   void *  _AllocPooled (struct ExecBase * , void *poolHeader , ULONG memSize );
  140. #define  AllocPooled(b1,b2) _AllocPooled (SysBase ,b1,b2)
  141.   void  _FreePooled (struct ExecBase * , void *poolHeader , void *memory , ULONG memSize );
  142. #define  FreePooled(b1,b2,b3) _FreePooled (SysBase ,b1,b2,b3)
  143.   void  _AddMemHandler (struct ExecBase * , struct Interrupt *memHandler );
  144. #define  AddMemHandler(b1) _AddMemHandler (SysBase ,b1)
  145.   void  _RemMemHandler (struct ExecBase * , struct Interrupt *memHandler );
  146. #define  RemMemHandler(b1) _RemMemHandler (SysBase ,b1)
  147.   struct Message *  _GetMsg (struct ExecBase * , struct MsgPort *port );
  148. #define  GetMsg(b1) _GetMsg (SysBase ,b1)
  149.   void  _PutMsg (struct ExecBase * , struct MsgPort *port , struct Message *msg );
  150. #define  PutMsg(b1,b2) _PutMsg (SysBase ,b1,b2)
  151.   void  _ReplyMsg (struct ExecBase * , struct Message *msg );
  152. #define  ReplyMsg(b1) _ReplyMsg (SysBase ,b1)
  153.   struct Message *  _WaitPort (struct ExecBase * , struct MsgPort *port );
  154. #define  WaitPort(b1) _WaitPort (SysBase ,b1)
  155.   struct MsgPort *  _CreateMsgPort (struct ExecBase * );
  156. #define  CreateMsgPort() _CreateMsgPort (SysBase )
  157.   void  _DeleteMsgPort (struct ExecBase * , struct MsgPort *port );
  158. #define  DeleteMsgPort(b1) _DeleteMsgPort (SysBase ,b1)
  159.   struct MsgPort *  _FindPort (struct ExecBase * , STRPTR name );
  160. #define  FindPort(b1) _FindPort (SysBase ,b1)
  161.   void  _AddPort (struct ExecBase * , struct MsgPort *port );
  162. #define  AddPort(b1) _AddPort (SysBase ,b1)
  163.   void  _RemPort (struct ExecBase * , struct MsgPort *port );
  164. #define  RemPort(b1) _RemPort (SysBase ,b1)
  165.   void  _Alert (struct ExecBase * , ULONG alertnum );
  166. #define  Alert(b1) _Alert (SysBase ,b1)
  167.   void  _Debug (struct ExecBase * , ULONG flags );
  168. #define  Debug(b1) _Debug (SysBase ,b1)
  169.   APTR  _RawDoFmt (struct ExecBase * , STRPTR FormatString , APTR DataStream , void (*PutChProc)() , APTR PutChData );
  170. #define  RawDoFmt(b1,b2,b3,b4) _RawDoFmt (SysBase ,b1,b2,b3,b4)
  171.   void  _ColdReboot (struct ExecBase * );
  172. #define  ColdReboot() _ColdReboot (SysBase )
  173.   void  _Private_1 (struct ExecBase * );
  174. #define  Private_1() _Private_1 (SysBase )
  175.   APTR  _Private_2 (struct ExecBase * , APTR newstack );
  176. #define  Private_2(b1) _Private_2 (SysBase ,b1)
  177.   APTR  _Private_3 (struct ExecBase * , APTR oldstack , APTR function , APTR data );
  178. #define  Private_3(b1,b2,b3) _Private_3 (SysBase ,b1,b2,b3)
  179.   void  _Private_4 (struct ExecBase * , ULONG intnum );
  180. #define  Private_4(b1) _Private_4 (SysBase ,b1)
  181.   void  _Private_5 (struct ExecBase * , ULONG intNumber , APTR function , APTR data );
  182. #define  Private_5(b1,b2,b3) _Private_5 (SysBase ,b1,b2,b3)
  183.   void  _Private_7 (struct ExecBase * );
  184. #define  Private_7() _Private_7 (SysBase )
  185.   void  _Private_8 (struct ExecBase * );
  186. #define  Private_8() _Private_8 (SysBase )
  187.   ULONG  _CacheControl (struct ExecBase * , ULONG bits , ULONG mask );
  188. #define  CacheControl(b1,b2) _CacheControl (SysBase ,b1,b2)
  189.   ULONG  _Supervisor (struct ExecBase * , void *userFunc );
  190. #define  Supervisor(b1) _Supervisor (SysBase ,b1)
  191.   APTR  _SuperState (struct ExecBase * );
  192. #define  SuperState() _SuperState (SysBase )
  193.   void  _UserState (struct ExecBase * , APTR sysStack );
  194. #define  UserState(b1) _UserState (SysBase ,b1)
  195.   LONG  _AllocTrap (struct ExecBase * , LONG trapNum );
  196. #define  AllocTrap(b1) _AllocTrap (SysBase ,b1)
  197.   void  _FreeTrap (struct ExecBase * , ULONG trapNum );
  198. #define  FreeTrap(b1) _FreeTrap (SysBase ,b1)
  199.   ULONG  _SetSR (struct ExecBase * , ULONG newSR , ULONG mask );
  200. #define  SetSR(b1,b2) _SetSR (SysBase ,b1,b2)
  201.   void  _GetCC (struct ExecBase * );
  202. #define  GetCC() _GetCC (SysBase )
  203.   void  _Private_6 (struct ExecBase * );
  204. #define  Private_6() _Private_6 (SysBase )
  205.   void  _Private_9 (struct ExecBase * );
  206. #define  Private_9() _Private_9 (SysBase )
  207.   void  _Private_10 (struct ExecBase * );
  208. #define  Private_10() _Private_10 (SysBase )
  209.   void  _Private_11 (struct ExecBase * );
  210. #define  Private_11() _Private_11 (SysBase )
  211.   void  _Private_12 (struct ExecBase * );
  212. #define  Private_12() _Private_12 (SysBase )
  213.   void  _Private_13 (struct ExecBase * );
  214. #define  Private_13() _Private_13 (SysBase )
  215.   void  _Private_14 (struct ExecBase * );
  216. #define  Private_14() _Private_14 (SysBase )
  217.   void  _Private_15 (struct ExecBase * );
  218. #define  Private_15() _Private_15 (SysBase )
  219.   void  _InitCode (struct ExecBase * , ULONG startClass , ULONG version );
  220. #define  InitCode(b1,b2) _InitCode (SysBase ,b1,b2)
  221.   struct Resident *  _FindResident (struct ExecBase * , STRPTR name );
  222. #define  FindResident(b1) _FindResident (SysBase ,b1)
  223.   APTR  _InitResident (struct ExecBase * , struct Resident *resident , ULONG segList );
  224. #define  InitResident(b1,b2) _InitResident (SysBase ,b1,b2)
  225.   ULONG  _SumKickData (struct ExecBase * );
  226. #define  SumKickData() _SumKickData (SysBase )
  227.   void  _AddResource (struct ExecBase * , APTR resource );
  228. #define  AddResource(b1) _AddResource (SysBase ,b1)
  229.   void  _RemResource (struct ExecBase * , APTR resource );
  230. #define  RemResource(b1) _RemResource (SysBase ,b1)
  231.   APTR  _OpenResource (struct ExecBase * , STRPTR resName );
  232. #define  OpenResource(b1) _OpenResource (SysBase ,b1)
  233.   VOID  _InitSemaphore (struct ExecBase * , struct SignalSemaphore *sem );
  234. #define  InitSemaphore(b1) _InitSemaphore (SysBase ,b1)
  235.   VOID  _ObtainSemaphore (struct ExecBase * , struct SignalSemaphore *sem );
  236. #define  ObtainSemaphore(b1) _ObtainSemaphore (SysBase ,b1)
  237.   ULONG  _AttemptSemaphore (struct ExecBase * , struct SignalSemaphore *sem );
  238. #define  AttemptSemaphore(b1) _AttemptSemaphore (SysBase ,b1)
  239.   VOID  _ObtainSemaphoreShared (struct ExecBase * , struct SignalSemaphore *sem );
  240. #define  ObtainSemaphoreShared(b1) _ObtainSemaphoreShared (SysBase ,b1)
  241.   ULONG  _AttemptSemaphoreShared (struct ExecBase * , struct SignalSemaphore *sem );
  242. #define  AttemptSemaphoreShared(b1) _AttemptSemaphoreShared (SysBase ,b1)
  243.   VOID  _ReleaseSemaphore (struct ExecBase * , struct SignalSemaphore *sem );
  244. #define  ReleaseSemaphore(b1) _ReleaseSemaphore (SysBase ,b1)
  245.   VOID  _Procure (struct ExecBase * , struct SignalSemaphore *sem , struct SemaphoreMessage *sm );
  246. #define  Procure(b1,b2) _Procure (SysBase ,b1,b2)
  247.   VOID  _Vacate (struct ExecBase * , struct SignalSemaphore *sem , struct SemaphoreMessage *sm );
  248. #define  Vacate(b1,b2) _Vacate (SysBase ,b1,b2)
  249.   VOID  _ObtainSemaphoreList (struct ExecBase * , struct List *sl );
  250. #define  ObtainSemaphoreList(b1) _ObtainSemaphoreList (SysBase ,b1)
  251.   VOID  _ReleaseSemaphoreList (struct ExecBase * , struct List *sl );
  252. #define  ReleaseSemaphoreList(b1) _ReleaseSemaphoreList (SysBase ,b1)
  253.   VOID  _AddSemaphore (struct ExecBase * , struct SignalSemaphore *sem );
  254. #define  AddSemaphore(b1) _AddSemaphore (SysBase ,b1)
  255.   VOID  _RemSemaphore (struct ExecBase * , struct SignalSemaphore *sem );
  256. #define  RemSemaphore(b1) _RemSemaphore (SysBase ,b1)
  257.   struct SignalSemaphore *  _FindSemaphore (struct ExecBase * , STRPTR name );
  258. #define  FindSemaphore(b1) _FindSemaphore (SysBase ,b1)
  259.   BYTE  _AllocSignal (struct ExecBase * , long signum );
  260. #define  AllocSignal(b1) _AllocSignal (SysBase ,b1)
  261.   void  _FreeSignal (struct ExecBase * , long signum );
  262. #define  FreeSignal(b1) _FreeSignal (SysBase ,b1)
  263.   ULONG  _SetSignal (struct ExecBase * , ULONG new , ULONG mask );
  264. #define  SetSignal(b1,b2) _SetSignal (SysBase ,b1,b2)
  265.   ULONG  _SetExcept (struct ExecBase * , ULONG newSignals , ULONG signalMask );
  266. #define  SetExcept(b1,b2) _SetExcept (SysBase ,b1,b2)
  267.   void  _Signal (struct ExecBase * , struct Task *task , ULONG sigs );
  268. #define  Signal(b1,b2) _Signal (SysBase ,b1,b2)
  269.   ULONG  _Wait (struct ExecBase * , ULONG sigs );
  270. #define  Wait(b1) _Wait (SysBase ,b1)
  271.   void  _Forbid (struct ExecBase * );
  272. #define  Forbid() _Forbid (SysBase )
  273.   void  _Permit (struct ExecBase * );
  274. #define  Permit() _Permit (SysBase )
  275.   APTR  _AddTask (struct ExecBase * , struct Task *task , APTR initialPC , APTR finalPC );
  276. #define  AddTask(b1,b2,b3) _AddTask (SysBase ,b1,b2,b3)
  277.   void  _RemTask (struct ExecBase * , struct Task *task );
  278. #define  RemTask(b1) _RemTask (SysBase ,b1)
  279.   BYTE  _SetTaskPri (struct ExecBase * , struct Task *task , long pri );
  280. #define  SetTaskPri(b1,b2) _SetTaskPri (SysBase ,b1,b2)
  281.   struct Task *  _FindTask (struct ExecBase * , STRPTR name );
  282. #define  FindTask(b1) _FindTask (SysBase ,b1)
  283.   void  _ChildFree (struct ExecBase * , APTR tid );
  284. #define  ChildFree(b1) _ChildFree (SysBase ,b1)
  285.   void  _ChildOrphan (struct ExecBase * , APTR tid );
  286. #define  ChildOrphan(b1) _ChildOrphan (SysBase ,b1)
  287.   void  _ChildStatus (struct ExecBase * , APTR tid );
  288. #define  ChildStatus(b1) _ChildStatus (SysBase ,b1)
  289.   void  _ChildWait (struct ExecBase * , APTR tid );
  290. #define  ChildWait(b1) _ChildWait (SysBase ,b1)
  291.  #endif